package com.framework.loippi.entity;

import com.framework.loippi.mybatis.eitity.GenericEntity;
import com.framework.loippi.mybatis.ext.annotation.Column;
import com.framework.loippi.mybatis.ext.annotation.Table;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Entity - 医生坐班表
 * 
 * @author wmj
 * @version 2.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "T_DOCTOR_WORK")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" }) 
@ApiModel(value="医生坐班表",description="医生坐班表")
public class DoctorWork implements GenericEntity {

	private static final long serialVersionUID = 5081846432919091193L;

	/**  */
	@Column(id = true, name = "id", updatable = false)
	@ApiModelProperty(value = "")
	private Long id;
	
	/** 医生id */
	@Column(name = "doctor_id" )
	@ApiModelProperty(value = "医生id")
	private Long doctorId;
	
	/** 日期对应的星期值 */
	@Column(name = "week_value" )
	@ApiModelProperty(value = "日期对应的星期值")
	private Integer weekValue;
	
	/** 值班日期 */
	@Column(name = "work_date" )
	@ApiModelProperty(value = "值班日期")
	private java.util.Date workDate;
	
	/** 值班时间段(0上午,1下午) */
	@Column(name = "work_time" )
	@ApiModelProperty(value = "值班时间段(0上午,1下午)")
	private Integer workTime;
	
	/** 放号 */
	@Column(name = "surplus" )
	@ApiModelProperty(value = "放号")
	private Integer surplus;
	
	/** 已预约 */
	@Column(name = "subscribed" )
	@ApiModelProperty(value = "已预约")
	private Integer subscribed;
	
	/** 创建时间 */
	@Column(name = "create_time" )
	@ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	
	/** 修改时间 */
	@Column(name = "update_time" )
	@ApiModelProperty(value = "修改时间")
	private java.util.Date updateTime;
	
	/** 时间间隔 */
	@Column(name = "gap" )
	@ApiModelProperty(value = "时间间隔")
	private Integer gap;

	/** 排班时间 */
	@ApiModelProperty(value = "排班时间")
	private String times;

	/** 关联医生 */
	@ApiModelProperty(name = "医生")
	private Doctor doctor;
}
